package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) AdminResetPassword(ctx context.Context, req *system.AdminResetPasswordReq) (res *system.AdminResetPasswordRes, err error) {
	res = new(system.AdminResetPasswordRes)
	err = service.SystemUser().ResetPassword(ctx, req.Id)
	return
}
